package com.benshou.bsoa.sao;

import com.benshou.bsoa.dto.feikong.req.PublicRequestParams;
import com.benshou.bsoa.dto.feikong.res.SyncFeiKongCommonResponse;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "feikong", url = "${benshou.feikong.requesturl:}")
public interface FeikongSao {
    /**
     * 同步法人公司信息到费控云系统
     *
     * @param request 包含公共参数和具体业务数据的请求对象
     * @return 响应对象，包含状态码、消息等信息
     */
    @PostMapping(value = "/fcopen/fcoutapi", consumes = "application/json", produces = "application/json")
    SyncFeiKongCommonResponse syncCompanyCommon(@RequestBody @Valid PublicRequestParams request);



    /**
     * 同步项目到费控云系统
     *
     * @param request 包含公共参数和具体业务数据的请求对象
     * @return 响应对象，包含状态码、消息等信息
     */
    @PostMapping(value = "/fcopen/fcoutapi", consumes = "application/json", produces = "application/json")
    SyncFeiKongCommonResponse syncProjectCommon(@RequestBody @Valid PublicRequestParams request);
}